file(GLOB PROJECT_SOURCES source/*.cpp)
file(GLOB COMMON_SOURCES  common/*.cpp )

include_directories(
    include
    ${PCL_INCLUDE_DIRS}
    ${yaml-cpp_INCLUDE_DIRS}
    ${gflags_INCLUDE_DIRS}
    ${Eigen3_INCLUDE_DIRS}
    ${Sophus_INCLUDE_DIRS}
    ${COMMON_INCLUDES}

)
add_executable(${PROJECT_NAME}
    ${PROJECT_SOURCES}
    ${COMMON_SOURCES}
)   

target_link_libraries(${PROJECT_NAME}
    ${PCL_LIBRARIES}
    ${yaml-cpp_LIBRARIES}
    gflags
    yaml-cpp
    fmt::fmt
    ${Sophus_LIBS} 
)
add_executable(test
    tests/test.cpp
)   
target_link_libraries(test
    ${PCL_LIBRARIES}
    ${yaml-cpp_LIBRARIES}
    gflags
    yaml-cpp
    fmt::fmt
    ${Sophus_LIBS} 
)
add_executable(test1
    tests/test1.cpp
)   
target_link_libraries(test1
    ${PCL_LIBRARIES}
    ${yaml-cpp_LIBRARIES}
    gflags
    yaml-cpp
    fmt::fmt
    ${Sophus_LIBS} 
)